home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19950329-19950528 / 000295_news@columbia.edu_Tue May 2 14:44:20 1995.msg < prev    next >
Internet Message Format  |  1995-07-31  |  5KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA23617
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Tue, 2 May 1995 10:44:27 -0400
  3. Received: by apakabar.cc.columbia.edu id AA08475
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Tue, 2 May 1995 10:44:25 -0400
  5. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  6. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  7. Newsgroups: comp.protocols.kermit.misc,comp.os.os2.apps
  8. Subject: Re: OS/2 C-Kermit 191 and character set problem
  9. Date: 2 May 1995 14:44:20 GMT
  10. Organization: Columbia University
  11. Lines: 95
  12. Message-Id: <3o5gg4$88k@apakabar.cc.columbia.edu>
  13. References: <1995May1.172104.121387@daniel>
  14. Nntp-Posting-Host: watsun.cc.columbia.edu
  15. Xref: news.columbia.edu comp.protocols.kermit.misc:2660 comp.os.os2.apps:80552
  16. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  17.  
  18. In article <1995May1.172104.121387@daniel>,
  19. Paul Coen <pcoen@daniel.drew.edu> wrote:
  20. : I've noticed a tendency for C-Kermit for OS/2 191 (final release) to have
  21. : special character problems after you exit from any utility based on TPU
  22. : (edit/tpu, DEC Notes, etc.).
  23. : My character set is latin-1.
  24. : Before entering Notes, for example, if I press the compose character key
  25. : (alt-c) and then enter -: I get the w division sign without any problem.
  26. : After I enter Notes and exit, the above sequence gives me a / instead of
  27. : the line with two dots above and below.  Other characters give me a ?
  28. : instead of the proper character.  For instance, I get a ? instead of
  29. : the Icelandic eth character.  Not that I use that, in all honesty,
  30. : it was just an example.
  31. : If I reset my terminal (alt-=) the problem goes away.  
  32. : Before entering Notes or TPU, my character set is:
  33. :  Terminal character-sets:
  34. :     Local: cp850
  35. :    Remote: GL->G0: ascii (94 chars)
  36. :                G1: latin1-iso (96 chars)
  37. :            GR->G2: latin1-iso (96 chars)
  38. :                G3: latin1-iso (96 chars)
  39. : After exiting DEC Notes or TPU, we've got:
  40. : Terminal character-sets:
  41. :    Local: cp850
  42. :   Remote: GL->G0: ascii (94 chars)
  43. :               G1: dec-special (96 chars)
  44. :           GR->G2: dec-multinational (96 chars)
  45. :               G3: latin1-iso (96 chars)
  46. It seems you've answered your own question.  The DEC Multinational
  47. Character Set (DEC MCS) is similar to, but not identical with, Latin-1.
  48. The differences are pretty much as noted -- DEC MCS has "undefined" cells
  49. where Latin-1 has Icelandic letters (and a couple others), and MCS has
  50. OE/oe "ligature" in place of multiply and divide.
  51.  
  52. : I would assume that this change is the root of the problem, since the
  53. : reset puts it back.  I guess my question is whether TPU-based programs
  54. : don't clean up after themselves, or if C-Kermit should be resetting
  55. : itself and isn't.  This problem does not occur in MS-Kermit 3.14, but
  56. : for all I know, MS-Kermit may not implement host-directed character set
  57. : changes the same way.
  58. :
  59. The session log (that Paul sent under separate cover to illustrate this
  60. report) contains the following mysterious control sequences:
  61.  
  62.   ESC [ 1 ; 2 ' z
  63.   ESC [ 1 ; 3 ' {
  64.   ESC [ 0 ' z 
  65.  
  66. I can't find these in the VT220 Programmer Reference Manual or VT220
  67. Programmer Pocket Guide, nor can I find them the VT320 or VT420 manual.
  68. However, if the apostrophe (') were changed to dollar-sign ($), they would
  69. be VT420 "rectangular area" functions.  Prior to VT420, I don't think
  70. there were any control sequences whose final characters were "z" or "{".
  71. And since the sequences listed above are not valid for the VT420 itself,
  72. I can only speculate that either (a) your VMS session was set for an even
  73. higher VT level (e.g. 520), (b) TPU is malfunctioning, (c) TPU is using
  74. undocumented escape sequences, or (c) there is something wrong with your
  75. session log.  A further piece of evidence is that your log contains some
  76. stray 8-bit ST (String Terminator) C1 controls, which are not terminating
  77. any string (such as would be introduced by DCS, APC, etc).
  78.  
  79. In any case, OS/2 C-Kermit is emulating a VT220.  A real VT220 does not
  80. support the Latin-1 character set, and so there is no way the host
  81. application can "save and restore" it.  Once it switches your terminal to
  82. DEC MCS (as it does, by sending:
  83.  
  84.   ESC * <
  85.  
  86. which designates DEC MCS to G2) it has no way of restoring Latin-1.  For
  87. example, if it sent the proper ISO escape sequence for this, which would be:
  88.  
  89.   ESC * A
  90.  
  91. the VT220 would not understand it.
  92.  
  93. One might argue that CSI ! p (DECSTR, Soft Reset), which is supposed to
  94. restore the VT200 startup default character sets (G0..G3, GL, GR) should
  95. be interpreted by C-Kermit to restore the user's character-set
  96. configuration, as specified in the most recent SET TERMINAL CHARACTER-SET
  97. commands, but VAX Notes is not sending this sequence.
  98.  
  99. So in summary, yes, it is not surprising that one needs to push the
  100. \Kreset button to get the character sets back to normal after a session
  101. like the one that you recorded.
  102.  
  103. - Frank